<?php
include 'Globals.php';

class cMenu 
{
	public	$name;
	public	$optionCount;

	function __construct($name) 
	{
       $this->name = $name;
	   $this->optionCount = 0;
	}

	function __destruct() 
	{
       
	}

	function addHeader()
	{
		echo"<html><body>";
	}

	function addFooter()
	{
		echo"</body></html>";
	}

	function addTitle()
	{
		echo"<div align='center' class='style2'>";
		echo"<p>ERICSSON TELEVISION FANTASY FOOTBALL LEAGUE: 2009-2010 SEASON</p>";
		echo"<p align='center'>".$this->name."</p></div>";
	}

	function addMenuItem($option)
	{
		$option = new cOptionMenu($option);
		$option->addOption();
		$this->optionCount++;

	}
}

class cMainMenu extends cMenu
{
	function createMenuOptions()
	{
		$this->addMenuItem('Show Teams');
		$this->addMenuItem('B');
		$this->addMenuItem('C');
		$this->addMenuItem('D');
		$this->addMenuItem('E');
	}

}

class cOptionMenu extends cMenu
{
	function addOption()
	{
		//echo"<BR><a href='".$this->name.".php'>".$this->name."</a>";
		echo"<BR><INPUT TYPE='BUTTON' VALUE='".$this->name."' ONCLICK=\"
		window.location.href=
		'$PHP_SELF?option=
		".$this->name."
		'\">
		";


	}
}

?> 
